
export default class RotationalLimitMotor {
    constructor() {
        this.lowerLimit = 1;
        this.upperLimit = 0;
        this.motorTorque = 0;
    }
    setLimits(lower,upper) {
        this.lowerLimit = lower;
        this.upperLimit = upper;
        return this;
    }
    setMotor(speed,torque) {
        this.motorSpeed = speed;
        this.motorTorque = torque;
        return this;
    }
    clone() {
        let lm = new RotationalLimitMotor();
        lm.lowerLimit = this.lowerLimit;
        lm.upperLimit = this.upperLimit;
        lm.motorSpeed = this.motorSpeed;
        lm.motorTorque = this.motorTorque;
        return lm;
    }
}